package cn.tedu.thread;

public class ThreadDemo {
    public static void main(String[] args) {
        Thread t1 = new MyThread1();
        Thread t2 = new MyThread2();
        t1.start();
        t2.start();

    }
}
class MyThread1 extends Thread{
    public void run(){
        for (int i=0;i<1000000;i++){
            System.out.println("hello!");
            System.out.println("让我试试CPUi5的执行速度");
        }
    }
}
class MyThread2 extends Thread{
    public void run(){
        for (int i=0;i<1000000;i++){
            System.out.println("我是明奥林");
            System.out.println("礼敬诸佛,阿弥陀佛,深入骨髓");
        }
    }
}